package com.bnzj.core.web.constant;

import lombok.Getter;

/**
 * @ClassName CommonWebEnum
 * @Description 前后端交互过程中，通用的一些返回码-信息枚举
 * @Author
 * @Date 2020/2/19
 * @Version V1.0
 **/
@Getter
public enum CommonWebEnum {
    LOGIN_FAILED(10400, "登录失败!"),
    ACCESS_DENIED(10403, "无访问权限"),
    TOKEN_INVALID(10401, "令牌无效");
    private int code;
    private String msg;
    private CommonWebEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
